package com.bwie.shop.mq;

import com.bwie.common.domain.Shop;
import com.rabbitmq.client.AMQP;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.amqp.RabbitProperties;
import org.springframework.stereotype.Component;

/**
 * 生产者
 *
 * @author <a href="mailto:3364114353@qq.com">liuwenliang</a>
 * @version 1.0
 * @description: 生产者
 * @date 2025/9/9 16:19
 */
@Component
public class ProducerMessage {


    @Autowired
    private AmqpTemplate amqpTemplate;

    public void sendMessage (Shop shop) {
        amqpTemplate.convertAndSend("2301A",shop);
    }
}
